﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.Entity.Users
{
    /// <summary>
    /// 第三方授权信息
    /// </summary>
    [SugarTable("uc_oauth")]
    public class Oauth
    {
        /// <summary>
        /// 自增
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 第三方登陆类型: 1 微信小程序, 2 微信公众号, 3 账号密码
        /// </summary>
        public int oauth_type { get; set; }
        /// <summary>
        /// 第三方用户openid
        /// </summary>
        public string open_id { get; set; } = string.Empty;
        /// <summary>
        /// 微信unionID
        /// </summary>
        public string unionid { get; set; } = string.Empty;
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int store_id { get; set; }
        /// <summary>
        /// 授权手机号
        /// </summary>
        public string mobile { get; set; } = string.Empty;
        /// <summary>
        /// 登录会话凭证
        /// </summary>
        public string token { get; set; } = string.Empty;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
    }
}
